package com.ruoyi.common.core.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息中心 对象 message
 * 
 * @author ess
 * @date 2021-10-18
 */
public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息编码 */
    private String messageNo;

    /** 消息发送人 */
    @Excel(name = "消息发送人")
    private String sender;

    /** 消息接收人 */
    @Excel(name = "消息接收人")
    private String receiver;

    /** 发送时间 */
    @Excel(name = "发送时间")
    private String sendTime;

    /** 消息类别  驳回 1  注册 2  重做 3授权延期 4  证书延期5 */
    @Excel(name = "消息类别  驳回 1  注册 2  重做 3授权延期 4  证书延期5")
    private String messageType;

    /** 消息标题 */
    @Excel(name = "消息标题")
    private String messageTitle;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String messageContent;

    /** 操作Id */
    @Excel(name = "操作Id")
    private String applyInfoId;

    /** 阅读状态 2 未读，1已读 */
    @Excel(name = "阅读状态 2 未读，1已读")
    private Long readState;

    /** 状态 0 停用 1 有效 */
    @Excel(name = "状态 0 停用 1 有效")
    private Long state;

    /** 完整性hash */
    @Excel(name = "完整性hash")
    private String mHash;

    public void setMessageNo(String messageNo) 
    {
        this.messageNo = messageNo;
    }

    public String getMessageNo() 
    {
        return messageNo;
    }
    public void setSender(String sender) 
    {
        this.sender = sender;
    }

    public String getSender() 
    {
        return sender;
    }
    public void setReceiver(String receiver) 
    {
        this.receiver = receiver;
    }

    public String getReceiver() 
    {
        return receiver;
    }
    public void setSendTime(String sendTime) 
    {
        this.sendTime = sendTime;
    }

    public String getSendTime() 
    {
        return sendTime;
    }
    public void setMessageType(String messageType) 
    {
        this.messageType = messageType;
    }

    public String getMessageType() 
    {
        return messageType;
    }
    public void setMessageTitle(String messageTitle) 
    {
        this.messageTitle = messageTitle;
    }

    public String getMessageTitle() 
    {
        return messageTitle;
    }
    public void setMessageContent(String messageContent) 
    {
        this.messageContent = messageContent;
    }

    public String getMessageContent() 
    {
        return messageContent;
    }
    public void setApplyInfoId(String applyInfoId) 
    {
        this.applyInfoId = applyInfoId;
    }

    public String getApplyInfoId() 
    {
        return applyInfoId;
    }
    public void setReadState(Long readState) 
    {
        this.readState = readState;
    }

    public Long getReadState() 
    {
        return readState;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setmHash(String mHash) 
    {
        this.mHash = mHash;
    }

    public String getmHash() 
    {
        return mHash;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("messageNo", getMessageNo())
            .append("sender", getSender())
            .append("receiver", getReceiver())
            .append("sendTime", getSendTime())
            .append("messageType", getMessageType())
            .append("messageTitle", getMessageTitle())
            .append("messageContent", getMessageContent())
            .append("applyInfoId", getApplyInfoId())
            .append("readState", getReadState())
            .append("state", getState())
            .append("mHash", getmHash())
            .toString();
    }
}
